package com.usian.admin.feign;

import com.usian.model.article.pojos.ApArticle;
import com.usian.model.article.pojos.ApArticleConfig;
import com.usian.model.article.pojos.ApArticleContent;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author xiaowanmate
 * @date 2023/2/24 11:02
 */
@FeignClient("leadnews-article")
public interface ArticleFeign {
    @PostMapping("/api/v1/article/saveArticle")
    ApArticle saveArticle(@RequestBody ApArticle article);

    @PostMapping("/api/v1/article/saveArticleConfig")
    ResponseResult saveArticleConfig(@RequestBody ApArticleConfig config);

    @PostMapping("/api/v1/article/saveArticleContent")
    ResponseResult saveArticleContent(@RequestBody ApArticleContent content);
}
